package co.fitstart.admin.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import co.fitstart.admin.service.RoomScheduleDataService;

@Controller
@RequestMapping("/room_schedule_datas")
public class RoomScheduleDataController {
    
    @Autowired
    private RoomScheduleDataService roomScheduleDataService;
    
    /**
     * 
     * @return
     */
    @RequestMapping(value = "/update", method = RequestMethod.GET)
    public ModelAndView update() {
        ModelAndView modelAndView = new ModelAndView("index");
        
        roomScheduleDataService.updateRoomSchedule();
        
        return modelAndView;
    }
    
    /**
     * 
     * @return
     */
    @RequestMapping(value = "/create", method = RequestMethod.GET)
    public ModelAndView create() {
        ModelAndView modelAndView = new ModelAndView("index");
        
        roomScheduleDataService.createRoomSchedule();
        
        return modelAndView;
    }

}
